package chapter2_2;

import org.springframework.stereotype.Component;

@Component("Song")	// 该注解表面该类将作为组件类，并告知Spring要为这个类创建Bean
public class CD implements CompactDist {
	
	@Override
	public String sing() {
		return "SgtPeppers";
	}

}
